﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="MatchUsers.aspx.cs" Inherits="SoccerEvaluator.WebSite.MatchUsers" %>


<asp:Content runat="server" ContentPlaceHolderID="PageHeader">

    <link href="css/MatchUsers.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <h2>
        <%=Resources.Resource.Users%> <%=_projectName %>
    </h2>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <table>
        <tr>
            <td align="left">
                <div class="MatchMenu">
                    </a><a href="MatchList.aspx?ID=<%=_groupID %>">
                        Volver                    
                    </a>
                </div>
            </td>
        </tr>
    </table>


    <br />
    <asp:Panel runat="server" ID="pnlData" CssClass="ScoreLine" Width="600px">
        <asp:Label runat="server" ID="Label12" Text="<% $ Resources:Resource,ExactScore %>"></asp:Label>
        :
        <asp:Label runat="server" ID="lblExactScore"></asp:Label>
        <asp:Label runat="server" ID="Label13" Text="<% $ Resources:Resource,CatchScore %>"></asp:Label>
        :
        <asp:Label runat="server" ID="lblCatchScore"></asp:Label>
        <asp:Label runat="server" ID="Label15" Text="<% $ Resources:Resource,Users %>"></asp:Label>
        <asp:Label runat="server" ID="lblTotalUsers"></asp:Label>
    </asp:Panel>
    <br />

    <asp:GridView ID="lstUsers" runat="server" AutoGenerateColumns="False"
        AllowSorting="True" CssClass="ScoreLine" Width="600px" CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:TemplateField HeaderText="Name" SortExpression="Name">
                
                <ItemTemplate>
                        <a id="TextBox1" href='MatchUser.aspx?ID=<%=_projectID %>&userID=<%#Eval("UserId") %>'><%# Eval("Name") %></a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="Total" HeaderText="Total" SortExpression="Total">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1"
        runat="server" SelectMethod="ListUserScores" TypeName="SoccerEvaluator.WebSite.App_Code.SoccerEvaluatorDataSource" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:QueryStringParameter Name="templateId" QueryStringField="ID" Type="Int32" DefaultValue="0" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
